﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace PongApplication.Views
{
    public class BallView : ShapeView
     {
        public void Draw(Graphics graphics, Circle ball)
        {
            int start = (int)(ball.x - ball.radius);
            int end = (int)(ball.y - ball.radius);
            int diam = (int)(ball.radius * 2);
            Pen blackPen = new Pen(Color.Black, 3);
            graphics.DrawEllipse(blackPen, start, end, diam, diam);
        }
    }
}
